<script setup lang="ts">
import { RouterView } from 'vue-router'
</script>

<template>
  <div class="auth-body">
    <img class="auth-background-earth" src="/auth-background.png" alt="">
    <img class="auth-background-net" src="/net.png" alt="">
    <div class="hero-title-container">
      <div class="hero-title">
        <div class="product-name">
          <span class="bold">
            小花狮
          </span>
          阅读教学系统
        </div>
        <div class="product-slogan">
          发展有温度的智能教育
        </div>
      </div>
    </div>
    <div class="auth-position-wrapper">
      <div class="auth-content-wrapper">
        <RouterView />
      </div>
    </div>
  </div>
</template>

<style scoped>
.hero-title-container {
  position: absolute;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .product-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 36px;

    .bold {
      font-size: 48px;
    }
  }

  .product-slogan {
    font-size: 26px;
    line-height: 40px;
    letter-spacing: 0.05em;
    color: #000000;
  }
}

.auth-position-wrapper {
  --safe-content-size: 60px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(50px, -50%);
  background: #ffffff;
  border-radius: 40px;

  .auth-content-wrapper {
    width: calc(300px);
    height: calc(100% - var(--safe-content-size) * 2);
    margin: var(--safe-content-size);
  }
}

.auth-body {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(255.63deg, rgba(143, 162, 255, 0.225) -11.46%, rgba(255, 255, 255, 0.45) 99.39%);
  position: relative;
  display: flex;
  flex-direction: row;
}

.auth-background-earth {
  position: absolute;
  width: 80vw;
  bottom: 0px;
  left: 0px;
  transform: rotate(25.67deg) translate(0, 40vh);
  max-width: none;
  pointer-events: none;
}

.auth-background-net {
  position: absolute;
  height: 100vh;
  top: 0px;
  right: 0px;
  max-width: none;
  pointer-events: none;
}
</style>
